package com.lifa.service;

import com.lifa.entity.Dianpu;

import java.util.List;

public interface DianpuService {
    /**
     * 查询全部
     * @return
     */
    public List<Dianpu> selectDianpu();

    /**
     * 查询总条数
     * @return
     */
    public long Dianpuzongtiaoshu();

    public List<Dianpu> Dianpufenye(int offset, int limit);
    /**
     * 根据id删除
     * @param dianpu_Id
     * @return
     */
    public long DeleteDianpu(int dianpu_Id);
    /**
     * 获取到商品单位id
     * @param dianpu_Id
     * @return
     */
    public Dianpu queryId(int dianpu_Id);
    /**
     * 修改店铺名称
     * @param dianpu
     * @return
     */
    public int UpdateDianpu(Dianpu dianpu);

    /**
     * 添加店铺
     * @param
     * @return
     */
    public long InsertDinapu(String dianpu_Name);
}
